package org.lpw.wormhole.util;

/**
 * 简易工具箱。用于自动创建相关工具类。
 * 
 * @author lpw
 */
public class KitImpl
    implements Kit
{
    private final Configurer configurer;
    private final Converter converter;
    private final Http http;
    private final Security security;
    private final Logger logger;

    public KitImpl()
    {
        super();

        converter = new ConverterImpl(this);
        configurer = new ConfigurerImpl(this);
        http = new HttpImpl(this);
        security = new SecurityImpl(this);
        logger = new LoggerImpl();
    }

    @Override
    public Configurer getConfigurer()
    {
        return configurer;
    }

    @Override
    public Converter getConverter()
    {
        return converter;
    }

    @Override
    public Http getHttp()
    {
        return http;
    }

    @Override
    public Logger getLogger()
    {
        return logger;
    }

    @Override
    public Security getSecurity()
    {
        return security;
    }
}
